<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>任务管理器监控内存变化</title>
  </head>
  <body>
    <button id="btn">add</button>
    <script>
      const btnEl = document.getElementById('btn');
      btnEl.onclick = function () {
        let arr = new Array(1000000);
      };
    </script>
  </body>
</html>
